/*
* Copyright (C) 1997-2001 Id Software, Inc.
* 
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE.
* 
* See the GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place - Suite 330, Boston, MA 02111-1307, USA.
*  
*/

// Created on 13.11.2003 by RST.
// $Id: M_Flipper.java,v 1.4 2005/11/20 22:18:33 salomo Exp $
using System;
using Defines = Suake2.UI.Defines;
using Suake2.UI.game;
using EntDieAdapter = Suake2.UI.game.EntDieAdapter;
using EntInteractAdapter = Suake2.UI.game.EntInteractAdapter;
using EntPainAdapter = Suake2.UI.game.EntPainAdapter;
using EntThinkAdapter = Suake2.UI.game.EntThinkAdapter;
using GameAI = Suake2.UI.game.GameAI;
using GameBase = Suake2.UI.game.GameBase;
using GameUtil = Suake2.UI.game.GameUtil;
using edict_t = Suake2.UI.game.edict_t;
using mframe_t = Suake2.UI.game.mframe_t;
using mmove_t = Suake2.UI.game.mmove_t;
using Lib = Suake2.UI.util.Lib;
using Math3D = Suake2.UI.util.Math3D;
namespace Suake2.UI.game.monsters
{
	
	public class M_Flipper
	{
		public M_Flipper()
		{
			InitBlock();
		}
		public class AnonymousClassEntThinkAdapter:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_stand";
				}
				
			}
			public override bool think(edict_t self)
			{
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_stand;
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter1:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_run_loop";
				}
				
			}
			public override bool think(edict_t self)
			{
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_run_loop;
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter2:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_run";
				}
				
			}
			public override bool think(edict_t self)
			{
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_run_start;
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter3:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_walk";
				}
				
			}
			public override bool think(edict_t self)
			{
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_walk;
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter4:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_start_run";
				}
				
			}
			public override bool think(edict_t self)
			{
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_start_run;
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter5:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_bite";
				}
				
			}
			public override bool think(edict_t self)
			{
				float[] aim = new float[]{0, 0, 0};
				
				Math3D.VectorSet(aim, Defines.MELEE_DISTANCE, 0, 0);
				GameWeapon.fire_hit(self, aim, 5, 0);
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter6:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_preattack";
				}
				
			}
			
			public override bool think(edict_t self)
			{
				GameBase.gi.sound(self, Defines.CHAN_WEAPON, jake2.game.monsters.M_Flipper.sound_chomp, 1, Defines.ATTN_NORM, 0);
				return true;
			}
		}
		public class AnonymousClassEntThinkAdapter7:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_melee";
				}
				
			}
			public override bool think(edict_t self)
			{
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_attack;
				return true;
			}
		}
		public class AnonymousClassEntPainAdapter:EntPainAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_pain";
				}
				
			}
			public override void  pain(edict_t self, edict_t other, float kick, int damage)
			{
				int n;
				
				if (self.health < (self.max_health / 2))
					self.s.skinnum = 1;
				
				if (GameBase.level.time < self.pain_debounce_time)
					return ;
				
				self.pain_debounce_time = GameBase.level.time + 3;
				
				if (GameBase.skill.value_Renamed == 3)
					return ; // no pain anims in nightmare
				
				n = (Lib.rand() + 1) % 2;
				if (n == 0)
				{
					GameBase.gi.sound(self, Defines.CHAN_VOICE, jake2.game.monsters.M_Flipper.sound_pain1, 1, Defines.ATTN_NORM, 0);
					self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_pain1;
				}
				else
				{
					GameBase.gi.sound(self, Defines.CHAN_VOICE, jake2.game.monsters.M_Flipper.sound_pain2, 1, Defines.ATTN_NORM, 0);
					self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_pain2;
				}
				return ;
			}
		}
		public class AnonymousClassEntThinkAdapter8:EntThinkAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_dead";
				}
				
			}
			public override bool think(edict_t self)
			{
				Math3D.VectorSet(self.mins, - 16, - 16, - 24);
				Math3D.VectorSet(self.maxs, 16, 16, - 8);
				self.movetype = Defines.MOVETYPE_TOSS;
				self.svflags |= Defines.SVF_DEADMONSTER;
				self.nextthink = 0;
				GameBase.gi.linkentity(self);
				return true;
			}
		}
		public class AnonymousClassEntInteractAdapter:EntInteractAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_sight";
				}
				
			}
			public override bool interact(edict_t self, edict_t other)
			{
				GameBase.gi.sound(self, Defines.CHAN_VOICE, jake2.game.monsters.M_Flipper.sound_sight, 1, Defines.ATTN_NORM, 0);
				return true;
			}
		}
		public class AnonymousClassEntDieAdapter:EntDieAdapter
		{
			override public System.String ID
			{
				get
				{
					return "flipper_die";
				}
				
			}
			
			public override void  die(edict_t self, edict_t inflictor, edict_t attacker, int damage, float[] point)
			{
				int n;
				
				//	check for gib
				if (self.health <= self.gib_health)
				{
					GameBase.gi.sound(self, Defines.CHAN_VOICE, GameBase.gi.soundindex("misc/udeath.wav"), 1, Defines.ATTN_NORM, 0);
					for (n = 0; n < 2; n++)
						GameMisc.ThrowGib(self, "models/objects/gibs/bone/tris.md2", damage, Defines.GIB_ORGANIC);
					for (n = 0; n < 2; n++)
						GameMisc.ThrowGib(self, "models/objects/gibs/sm_meat/tris.md2", damage, Defines.GIB_ORGANIC);
					GameMisc.ThrowHead(self, "models/objects/gibs/sm_meat/tris.md2", damage, Defines.GIB_ORGANIC);
					self.deadflag = Defines.DEAD_DEAD;
					return ;
				}
				
				if (self.deadflag == Defines.DEAD_DEAD)
					return ;
				
				//	regular death
				GameBase.gi.sound(self, Defines.CHAN_VOICE, jake2.game.monsters.M_Flipper.sound_death, 1, Defines.ATTN_NORM, 0);
				self.deadflag = Defines.DEAD_DEAD;
				self.takedamage = Defines.DAMAGE_YES;
				self.monsterinfo.currentmove = Suake2.UI.game.monsters.M_Flipper.flipper_move_death;
			}
		}
		private void  InitBlock()
		{
			flipper_frames_stand = new mframe_t[]{new mframe_t(GameAI.ai_stand, 0, null)};
			flipper_frames_run = new mframe_t[]{new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null), new mframe_t(GameAI.ai_run, FLIPPER_RUN_SPEED, null)};
			flipper_frames_run_start = new mframe_t[]{new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null)};
			flipper_frames_walk = new mframe_t[]{new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null), new mframe_t(GameAI.ai_walk_Renamed_Field, 4, null)};
			flipper_frames_start_run = new mframe_t[]{new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, null), new mframe_t(GameAI.ai_run, 8, flipper_run)};
			flipper_frames_pain2 = new mframe_t[]{new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null)};
			flipper_frames_pain1 = new mframe_t[]{new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null)};
			flipper_frames_attack = new mframe_t[]{new mframe_t(GameAI.ai_charge, 0, flipper_preattack), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, flipper_bite), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, null), new mframe_t(GameAI.ai_charge, 0, flipper_bite), new mframe_t(GameAI.ai_charge, 0, null)};
			flipper_frames_death = new mframe_t[]{new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.
				ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null), new mframe_t(GameAI.ai_move_Renamed_Field, 0, null)};
		}
		
		//	This file generated by ModelGen - Do NOT Modify
		
		public const int FRAME_flpbit01 = 0;
		
		public const int FRAME_flpbit02 = 1;
		
		public const int FRAME_flpbit03 = 2;
		
		public const int FRAME_flpbit04 = 3;
		
		public const int FRAME_flpbit05 = 4;
		
		public const int FRAME_flpbit06 = 5;
		
		public const int FRAME_flpbit07 = 6;
		
		public const int FRAME_flpbit08 = 7;
		
		public const int FRAME_flpbit09 = 8;
		
		public const int FRAME_flpbit10 = 9;
		
		public const int FRAME_flpbit11 = 10;
		
		public const int FRAME_flpbit12 = 11;
		
		public const int FRAME_flpbit13 = 12;
		
		public const int FRAME_flpbit14 = 13;
		
		public const int FRAME_flpbit15 = 14;
		
		public const int FRAME_flpbit16 = 15;
		
		public const int FRAME_flpbit17 = 16;
		
		public const int FRAME_flpbit18 = 17;
		
		public const int FRAME_flpbit19 = 18;
		
		public const int FRAME_flpbit20 = 19;
		
		public const int FRAME_flptal01 = 20;
		
		public const int FRAME_flptal02 = 21;
		
		public const int FRAME_flptal03 = 22;
		
		public const int FRAME_flptal04 = 23;
		
		public const int FRAME_flptal05 = 24;
		
		public const int FRAME_flptal06 = 25;
		
		public const int FRAME_flptal07 = 26;
		
		public const int FRAME_flptal08 = 27;
		
		public const int FRAME_flptal09 = 28;
		
		public const int FRAME_flptal10 = 29;
		
		public const int FRAME_flptal11 = 30;
		
		public const int FRAME_flptal12 = 31;
		
		public const int FRAME_flptal13 = 32;
		
		public const int FRAME_flptal14 = 33;
		
		public const int FRAME_flptal15 = 34;
		
		public const int FRAME_flptal16 = 35;
		
		public const int FRAME_flptal17 = 36;
		
		public const int FRAME_flptal18 = 37;
		
		public const int FRAME_flptal19 = 38;
		
		public const int FRAME_flptal20 = 39;
		
		public const int FRAME_flptal21 = 40;
		
		public const int FRAME_flphor01 = 41;
		
		public const int FRAME_flphor02 = 42;
		
		public const int FRAME_flphor03 = 43;
		
		public const int FRAME_flphor04 = 44;
		
		public const int FRAME_flphor05 = 45;
		
		public const int FRAME_flphor06 = 46;
		
		public const int FRAME_flphor07 = 47;
		
		public const int FRAME_flphor08 = 48;
		
		public const int FRAME_flphor09 = 49;
		
		public const int FRAME_flphor10 = 50;
		
		public const int FRAME_flphor11 = 51;
		
		public const int FRAME_flphor12 = 52;
		
		public const int FRAME_flphor13 = 53;
		
		public const int FRAME_flphor14 = 54;
		
		public const int FRAME_flphor15 = 55;
		
		public const int FRAME_flphor16 = 56;
		
		public const int FRAME_flphor17 = 57;
		
		public const int FRAME_flphor18 = 58;
		
		public const int FRAME_flphor19 = 59;
		
		public const int FRAME_flphor20 = 60;
		
		public const int FRAME_flphor21 = 61;
		
		public const int FRAME_flphor22 = 62;
		
		public const int FRAME_flphor23 = 63;
		
		public const int FRAME_flphor24 = 64;
		
		public const int FRAME_flpver01 = 65;
		
		public const int FRAME_flpver02 = 66;
		
		public const int FRAME_flpver03 = 67;
		
		public const int FRAME_flpver04 = 68;
		
		public const int FRAME_flpver05 = 69;
		
		public const int FRAME_flpver06 = 70;
		
		public const int FRAME_flpver07 = 71;
		
		public const int FRAME_flpver08 = 72;
		
		public const int FRAME_flpver09 = 73;
		
		public const int FRAME_flpver10 = 74;
		
		public const int FRAME_flpver11 = 75;
		
		public const int FRAME_flpver12 = 76;
		
		public const int FRAME_flpver13 = 77;
		
		public const int FRAME_flpver14 = 78;
		
		public const int FRAME_flpver15 = 79;
		
		public const int FRAME_flpver16 = 80;
		
		public const int FRAME_flpver17 = 81;
		
		public const int FRAME_flpver18 = 82;
		
		public const int FRAME_flpver19 = 83;
		
		public const int FRAME_flpver20 = 84;
		
		public const int FRAME_flpver21 = 85;
		
		public const int FRAME_flpver22 = 86;
		
		public const int FRAME_flpver23 = 87;
		
		public const int FRAME_flpver24 = 88;
		
		public const int FRAME_flpver25 = 89;
		
		public const int FRAME_flpver26 = 90;
		
		public const int FRAME_flpver27 = 91;
		
		public const int FRAME_flpver28 = 92;
		
		public const int FRAME_flpver29 = 93;
		
		public const int FRAME_flppn101 = 94;
		
		public const int FRAME_flppn102 = 95;
		
		public const int FRAME_flppn103 = 96;
		
		public const int FRAME_flppn104 = 97;
		
		public const int FRAME_flppn105 = 98;
		
		public const int FRAME_flppn201 = 99;
		
		public const int FRAME_flppn202 = 100;
		
		public const int FRAME_flppn203 = 101;
		
		public const int FRAME_flppn204 = 102;
		
		public const int FRAME_flppn205 = 103;
		
		public const int FRAME_flpdth01 = 104;
		
		public const int FRAME_flpdth02 = 105;
		
		public const int FRAME_flpdth03 = 106;
		
		public const int FRAME_flpdth04 = 107;
		
		public const int FRAME_flpdth05 = 108;
		
		public const int FRAME_flpdth06 = 109;
		
		public const int FRAME_flpdth07 = 110;
		
		public const int FRAME_flpdth08 = 111;
		
		public const int FRAME_flpdth09 = 112;
		
		public const int FRAME_flpdth10 = 113;
		
		public const int FRAME_flpdth11 = 114;
		
		public const int FRAME_flpdth12 = 115;
		
		public const int FRAME_flpdth13 = 116;
		
		public const int FRAME_flpdth14 = 117;
		
		public const int FRAME_flpdth15 = 118;
		
		public const int FRAME_flpdth16 = 119;
		
		public const int FRAME_flpdth17 = 120;
		
		public const int FRAME_flpdth18 = 121;
		
		public const int FRAME_flpdth19 = 122;
		
		public const int FRAME_flpdth20 = 123;
		
		public const int FRAME_flpdth21 = 124;
		
		public const int FRAME_flpdth22 = 125;
		
		public const int FRAME_flpdth23 = 126;
		
		public const int FRAME_flpdth24 = 127;
		
		public const int FRAME_flpdth25 = 128;
		
		public const int FRAME_flpdth26 = 129;
		
		public const int FRAME_flpdth27 = 130;
		
		public const int FRAME_flpdth28 = 131;
		
		public const int FRAME_flpdth29 = 132;
		
		public const int FRAME_flpdth30 = 133;
		
		public const int FRAME_flpdth31 = 134;
		
		public const int FRAME_flpdth32 = 135;
		
		public const int FRAME_flpdth33 = 136;
		
		public const int FRAME_flpdth34 = 137;
		
		public const int FRAME_flpdth35 = 138;
		
		public const int FRAME_flpdth36 = 139;
		
		public const int FRAME_flpdth37 = 140;
		
		public const int FRAME_flpdth38 = 141;
		
		public const int FRAME_flpdth39 = 142;
		
		public const int FRAME_flpdth40 = 143;
		
		public const int FRAME_flpdth41 = 144;
		
		public const int FRAME_flpdth42 = 145;
		
		public const int FRAME_flpdth43 = 146;
		
		public const int FRAME_flpdth44 = 147;
		
		public const int FRAME_flpdth45 = 148;
		
		public const int FRAME_flpdth46 = 149;
		
		public const int FRAME_flpdth47 = 150;
		
		public const int FRAME_flpdth48 = 151;
		
		public const int FRAME_flpdth49 = 152;
		
		public const int FRAME_flpdth50 = 153;
		
		public const int FRAME_flpdth51 = 154;
		
		public const int FRAME_flpdth52 = 155;
		
		public const int FRAME_flpdth53 = 156;
		
		public const int FRAME_flpdth54 = 157;
		
		public const int FRAME_flpdth55 = 158;
		
		public const int FRAME_flpdth56 = 159;
		
		public const float MODEL_SCALE = 1.000000f;
		
		internal static int sound_chomp;
		
		internal static int sound_attack;
		
		internal static int sound_pain1;
		
		internal static int sound_pain2;
		
		internal static int sound_death;
		
		internal static int sound_idle;
		
		internal static int sound_search;
		
		internal static int sound_sight;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_stand' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_stand;
		
		internal static mmove_t flipper_move_stand = new mmove_t(FRAME_flphor01, FRAME_flphor01, flipper_frames_stand, null);
		
		//UPGRADE_NOTE: The initialization of  'flipper_stand' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_stand;
		
		public const int FLIPPER_RUN_SPEED = 24;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_run' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_run;
		
		internal static mmove_t flipper_move_run_loop = new mmove_t(FRAME_flpver06, FRAME_flpver29, flipper_frames_run, null);
		
		//UPGRADE_NOTE: The initialization of  'flipper_run_loop' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_run_loop;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_run_start' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_run_start;
		
		internal static mmove_t flipper_move_run_start = new mmove_t(FRAME_flpver01, FRAME_flpver06, flipper_frames_run_start, flipper_run_loop);
		
		//UPGRADE_NOTE: The initialization of  'flipper_run' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_run;
		
		/* Standard Swimming */
		//UPGRADE_NOTE: The initialization of  'flipper_frames_walk' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_walk;
		
		internal static mmove_t flipper_move_walk = new mmove_t(FRAME_flphor01, FRAME_flphor24, flipper_frames_walk, null);
		
		//UPGRADE_NOTE: The initialization of  'flipper_walk' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_walk;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_start_run' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_start_run;
		
		internal static mmove_t flipper_move_start_run = new mmove_t(FRAME_flphor01, FRAME_flphor05, flipper_frames_start_run, null);
		
		//UPGRADE_NOTE: The initialization of  'flipper_start_run' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_start_run;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_pain2' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_pain2;
		
		internal static mmove_t flipper_move_pain2 = new mmove_t(FRAME_flppn101, FRAME_flppn105, flipper_frames_pain2, flipper_run);
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_pain1' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_pain1;
		
		internal static mmove_t flipper_move_pain1 = new mmove_t(FRAME_flppn201, FRAME_flppn205, flipper_frames_pain1, flipper_run);
		
		//UPGRADE_NOTE: The initialization of  'flipper_bite' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_bite;
		
		//UPGRADE_NOTE: The initialization of  'flipper_preattack' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_preattack;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_attack' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_attack;
		
		internal static mmove_t flipper_move_attack = new mmove_t(FRAME_flpbit01, FRAME_flpbit20, flipper_frames_attack, flipper_run);
		
		//UPGRADE_NOTE: The initialization of  'flipper_melee' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_melee;
		
		//UPGRADE_NOTE: The initialization of  'flipper_pain' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntPainAdapter flipper_pain;
		
		//UPGRADE_NOTE: The initialization of  'flipper_dead' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntThinkAdapter flipper_dead;
		
		//UPGRADE_NOTE: The initialization of  'flipper_frames_death' was moved to method 'InitBlock'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static mframe_t[] flipper_frames_death;
		
		internal static mmove_t flipper_move_death = new mmove_t(FRAME_flpdth01, FRAME_flpdth56, flipper_frames_death, flipper_dead);
		
		//UPGRADE_NOTE: The initialization of  'flipper_sight' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntInteractAdapter flipper_sight;
		
		//UPGRADE_NOTE: The initialization of  'flipper_die' was moved to static method 'jake2.game.monsters.M_Flipper'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1005'"
		internal static EntDieAdapter flipper_die;
		
		/*
		* QUAKED monster_flipper (1 .5 0) (-16 -16 -24) (16 16 32) Ambush
		* Trigger_Spawn Sight
		*/
		public static void  SP_monster_flipper(edict_t self)
		{
			if (GameBase.deathmatch.value_Renamed != 0)
			{
				GameUtil.G_FreeEdict(self);
				return ;
			}
			
			sound_pain1 = GameBase.gi.soundindex("flipper/flppain1.wav");
			sound_pain2 = GameBase.gi.soundindex("flipper/flppain2.wav");
			sound_death = GameBase.gi.soundindex("flipper/flpdeth1.wav");
			sound_chomp = GameBase.gi.soundindex("flipper/flpatck1.wav");
			sound_attack = GameBase.gi.soundindex("flipper/flpatck2.wav");
			sound_idle = GameBase.gi.soundindex("flipper/flpidle1.wav");
			sound_search = GameBase.gi.soundindex("flipper/flpsrch1.wav");
			sound_sight = GameBase.gi.soundindex("flipper/flpsght1.wav");
			
			self.movetype = Defines.MOVETYPE_STEP;
			self.solid = Defines.SOLID_BBOX;
			self.s.modelindex = GameBase.gi.modelindex("models/monsters/flipper/tris.md2");
			Math3D.VectorSet(self.mins, - 16, - 16, 0);
			Math3D.VectorSet(self.maxs, 16, 16, 32);
			
			self.health = 50;
			self.gib_health = - 30;
			self.mass = 100;
			
			self.pain = flipper_pain;
			self.die = flipper_die;
			
			self.monsterinfo.stand = flipper_stand;
			self.monsterinfo.walk = flipper_walk;
			self.monsterinfo.run = flipper_start_run;
			self.monsterinfo.melee = flipper_melee;
			self.monsterinfo.sight = flipper_sight;
			
			GameBase.gi.linkentity(self);
			
			self.monsterinfo.currentmove = flipper_move_stand;
			self.monsterinfo.scale = MODEL_SCALE;
			
			GameAI.swimmonster_start.think(self);
		}
		static M_Flipper()
		{
			flipper_stand = new AnonymousClassEntThinkAdapter();
			flipper_run_loop = new AnonymousClassEntThinkAdapter1();
			flipper_run = new AnonymousClassEntThinkAdapter2();
			flipper_walk = new AnonymousClassEntThinkAdapter3();
			flipper_start_run = new AnonymousClassEntThinkAdapter4();
			flipper_bite = new AnonymousClassEntThinkAdapter5();
			flipper_preattack = new AnonymousClassEntThinkAdapter6();
			flipper_melee = new AnonymousClassEntThinkAdapter7();
			flipper_pain = new AnonymousClassEntPainAdapter();
			flipper_dead = new AnonymousClassEntThinkAdapter8();
			flipper_sight = new AnonymousClassEntInteractAdapter();
			flipper_die = new AnonymousClassEntDieAdapter();
		}
	}
}